const compose = require("koa-compose")
const cors = require("koa2-cors")
const koaBody = require("koa-body")
const router = require("../routers/index.js")

module.exports = compose([
  cors(),
  koaBody({
    multipart: true,
    formidable: {
      maxFileSize: 2000 * 1024 * 1024  
    }
  }),
  router
])
